package com.guaoran.other.factory.simple;

/**
 * @author : 孤傲然
 * @Description :
 * 简单的工厂模式，创造前需要知道要创建的是哪种类型
 * @date :2018/5/12 22:13
 */
public class SimpleFactoryTest {
    public static void main(String[] args) {
        SimpleFactory factory = new SimpleFactory();

        System.out.println(factory.getMilk("伊利"));

    }
}
